package com.sun.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author SunRui
 * @since 2024-12-11
 */
@Getter
@Setter
@TableName("user")
@Schema(name = "User", description = "")
public class User {

    @Schema(description = "人员编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "名称")
    @TableField("nick_name")
    private String nickName;

    @Schema(description = "性别")
    @TableField("Gender")
    private String gender;

    @Schema(description = "年龄")
    @TableField("Age")
    private Integer age;

    @Schema(description = "小组编号")
    @TableField("Squad_id")
    private Integer squadId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getSquadId() {
        return squadId;
    }

    public void setSquadId(Integer squadId) {
        this.squadId = squadId;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", nickName='" + nickName + '\'' +
                ", gender='" + gender + '\'' +
                ", age=" + age +
                ", squadId=" + squadId +
                '}';
    }
}
